@layout("/common/_curd/_container.html"){

<div class="" id="chuku">
	<span class="title">出库单</span>
	<div>单号：${store.bianhao}</div>
	<div>日期：${store.out_time,dateFormat="yyyy-MM-dd"}</div>
	<table class="table table-bordered" id="inLog">
		<tr>
			<td>编码</td>
			<td>零件名称</td>
			<td>单位</td>
			<td>单价</td>
			<td>数量</td>
			<td>价格</td>
			<td>领用人</td>
		</tr>


	</table>
</div>
<div class="" id="ruku">

	<table class="table table-bordered" id="outLog">
		<tr>
			<td>编码</td>
			<td>零件名称</td>
			<td>单位</td>
			<td>单价</td>
			<td>数量</td>
			<td>价格</td>
			<td>订单号</td>
		</tr>

		@for(log in list){
			<tr>
				<td>${log.g_bianhao!}</td>
				<td>${log.g_name!}</td>
				<td>${log.g_unit!}</td>
				<td>${log.price!}</td>
				<td>${log.num!}</td>
				<td>${log.totleprice!}</td>
				<td>${log.orderid!}</td>
			</tr>
		@}

	</table>
</div>


	<form class="form-horizontal" role="form">
		<!-- 表单 -->
		@ var _col=[
		@			  {name:"入库时间", index:"in_time", type:"text",newline:true,length:8},
		@			  {name:"出库时间", index:"out_time", type:"text",newline:true,length:8},
		@			  {name:"入库数量", index:"in_num", type:"text",newline:true,length:8},
		@			  {name:"出库数量", index:"out_num", type:"text",newline:true,length:8},
		@			  {name:"供应商ID", index:"s_id", type:"text",newline:true,length:8},
		@			  {name:"经办人ID", index:"u_id", type:"text",newline:true,length:8},
		@			  {name:"库存流水号", index:"bianhao", type:"text",newline:true,length:8},
		@			  {name:"商品ID", index:"g_id", type:"text",newline:true,length:8},
		@			  {name:"单价", index:"g_price", type:"text",newline:true,length:8},
		@			  {name:"总价", index:"totle_price", type:"text",newline:true,length:8},
		@			  {name:"订单号", index:"order_id", type:"text",newline:true,length:8}		
		@		   ];
		@ include("/common/_curd/_view.html", {"col":_col}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_close:"关闭"}) {}
	</form>

<script>
	$(function () {
		var type ='${inType}';
		if(type === "in"){
			$("#chuku").hide()
		}else{
			$("#ruku").hide()
		}

	})
</script>

@}
